namespace CaltechSoft.Service.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class addProcedureAndTechToWO : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.WorkOrders", "Procudure", c => c.String());
            AddColumn("dbo.WorkOrders", "TechicianId", c => c.String(maxLength: 128));
            CreateIndex("dbo.WorkOrders", "TechicianId");
            AddForeignKey("dbo.WorkOrders", "TechicianId", "dbo.AspNetUsers", "Id");
        }
        
        public override void Down()
        {
            DropForeignKey("dbo.WorkOrders", "TechicianId", "dbo.AspNetUsers");
            DropIndex("dbo.WorkOrders", new[] { "TechicianId" });
            DropColumn("dbo.WorkOrders", "TechicianId");
            DropColumn("dbo.WorkOrders", "Procudure");
        }
    }
}
